package portal.action.security;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
//import com.company.app.web.interceptor.AllInterceptor;
@Controller
public class Login {
	@RequestMapping(value={"/security/security","/main","/"},method=RequestMethod.GET)
	public String  index(ModelAndView model){
		return "index1";
	}
	@RequestMapping(value={"/login","/loginJh"},method=RequestMethod.GET)
	public String  login(ModelAndView model,HttpServletRequest req){
		//System.out.println("loginnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn");
		req.setAttribute("ctx", req.getContextPath());
		return "login";
	}
}
